package 数组.easy;

/**
 * @author Lw中
 * @date 2020/8/12 10:31
 */
public class QiLuLu {

    public boolean isToeplitzMatrix(int[][] matrix) {
        for (int r = 0; r < matrix.length; ++r) {
            for (int c = 0; c < matrix[0].length; ++c) {
                if (r > 0 && c > 0 && matrix[r-1][c-1] != matrix[r][c]) {
                    return false;
                }
            }
        }
        return true;
    }

    public static void main(String[] args) {

    }

}
